package com.zhq.zhq_blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhq.zhq_blog.entity.Comment;
import com.zhq.zhq_blog.mapper.CommentMapper;
import com.zhq.zhq_blog.service.ICommentService;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * <p>
 *  评论服务实现类
 * </p>
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements ICommentService {

    CommentMapper mapper;

    public CommentServiceImpl(CommentMapper mapper){
        this.mapper = mapper;
    }

    @Override
    public Comment queryComment(int comment_id) {
        return mapper.queryComment(comment_id);
    }

    @Override
    public List<Comment> queryCommentList(int blog_id) {
        return mapper.queryCommentList(blog_id);
    }
}
